package cn.yqx.bankshop.order.service;



import cn.yqx.bankshop.order.service.fallback.GoodsServiceFallback;
import com.alibaba.fastjson.JSONObject;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="bankshop-goods-service", fallback = GoodsServiceFallback.class)
public interface GoodsService {
    @GetMapping(value = "/api/v1/goods/find_by_id" )
    public JSONObject findById(@RequestParam("goodId") Long goodId );
}
